<?php

$mcrp = './../';
include_once($mcrp . 'functions/users.php');
include_once($mcrp . 'functions/security.php');
include_once($mcrp . 'functions/sql.php');
Secure();

global $mcsql;
$mcsql = new SQL;

if(!isset($_GET['username']) || !isset($_GET['email']) || is_array($_GET['username']) || is_array($_GET['email'])) { 
	die('0'); 
}

$user = GetUser($_GET['username']);
if($user === false) die('0');
if($user->email != $_GET['email']) die('0');
die('1');

?>